package com.ssyx.cart.feign;

import com.ssyx.model.order.CartInfo;
import com.ssyx.vo.order.OrderConfirmVo;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * ClassName:ActivityFeignClient
 * Description:
 *
 * @Author kay
 * @Create 2024/5/20 16:35
 * @Version 1.0
 */
@FeignClient(value = "service-activity")
public interface ActivityFeignClient {

    //获取购物车满足条件的促销与优惠券信息
    @PostMapping("/api/activity/inner/findCartActivityAndCoupon/{userId}")
    OrderConfirmVo findCartActivityAndCoupon(@RequestBody List<CartInfo> cartInfoList,
                                             @PathVariable("userId") Long userId);
}
